using SqlSugar;
using System.ComponentModel;

namespace CoreShop.Model
{
    /// <summary>
    /// 商品规格表
    /// </summary>
    public partial class corecmsfoodspecPost
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public corecmsfoodspecPost()
        {
        }

        /// <summary>
        /// 序列
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int64 id { get; set; }


        /// <summary>
        /// 品牌id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int32 corpId { get; set; }


        /// <summary>
        /// 门店id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int64 storeId { get; set; }


        /// <summary>
        /// 商品id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int64 foodId { get; set; }


        /// <summary>
        /// 商品条形码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String code { get; set; }


        /// <summary>
        /// 规格名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String specName { get; set; } = "份";


        /// <summary>
        /// 是否上架
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean onLine { get; set; } = false;


        /// <summary>
        /// 是否共享
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean isShare { get; set; } = false;


        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean isDelete { get; set; } = false;


        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.DateTime createTime { get; set; }


        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.DateTime? updateTime { get; set; }



        /// <summary>
        /// 关联的商品规格id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int64 goodsProductsId { get; set; } = 0;

        /// <summary>
        /// corecmsfoodshopprice.id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int64 foodShopPriceId { get; set; } = 0;

        /// <summary>
        /// 是否默认(当corecmsfood.foodSpecId = corecmsfoodspec.id时为默认)
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool isDefault { get; set; } = false;

        /// <summary>
        /// 零售价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal posPrice { get; set; } = 0;

        /// <summary>
        /// 零售价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal vipPrice { get; set; } = 0;

        /// <summary>
        /// 零售价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal purPrice { get; set; } = 0;

        /// <summary>
        /// 零售价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal rmoPrice { get; set; } = 0;

        /// <summary>
        /// 电商价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal mallPrice { get; set; } = 0;

        /// <summary>
        /// 默认选中
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean isSelected { get; set; } = false;


        /// <summary>
        /// 唯一的
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean isExclusive { get; set; } = false;

        /// <summary>
        /// 规格名称需要和加料做法名称统一
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String name { get; set; } = "";


        /// <summary>
        /// 规格价格需要和加料做法价格名称统一
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal price { get; set; } = 0;
    }
}
